import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'MainContent',
      component (resolve) {
        require(['@/components/main-contain.vue'], resolve);
      }
    },
    {
      path: '/login',
      name: 'login',
      component (resolve) {
        require(['@/components/login.vue'], resolve);
      }
    }
  ]
})
